<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>component-1</title>
    <script type="text/javascript" src="../assets/js/vue.js"></script>
</head>
<body>
    <h1>component-1</h1>
    <hr>
    <div id="app">
        <jspang></jspang>
        <panda></panda>
    </div>
    <!-- <div id="ppa">
        <jspang></jspang>
    </div> -->

    <script type="text/javascript">
       Vue.component('jspang',{
          template:`<div style="color:red">我是全局的jspang组件</div>`
       }) 
       var app = new Vue({
        el:'#app',
        components:{
            "panda":{
                template:`<div style="color:green">我是局部的jspang组件</div>`
            }
        }
       })

    //    var ppa = new Vue({
    //     el:'#ppa'
    //    })

    </script>
</body>
</html>